Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tests] Share modal redesign refactor FTRs #179694

Closed
wants to merge 99 commits into from

Conversation

rshen91
Copy link
Contributor

@rshen91 rshen91 commented Mar 29, 2024

This PR is built off the branch #179206 with the most recent changes for the share modal redesign. The kibana.yml is set to share.new_version.enabled: true to reflect the new share modal redesign changes and the tests that need to be removed or refactored for the share redesign to be merged into main.

One of the largest changes in the redesign is that there is no radio button in the links share component. The link will be saved object for Lens and discover and dashboard's link that is copied is the snapshot url.

For share links…
Remove ‘short URL’ option
Remove the radio selection for saved object vs snapshot (for: dash, lens, and discover)
When user clicks the ‘copy link’ button
For dashboard: copy the “snapshot” URL to user clipboard
For lens: copy the “saved object” URL to user clipboard.
If lens is not saved to library you cannot copy (show unsaved changed error as in figma)
For discover: discover is saved: copy the “snapshot” URL to user clipboard
Default to short URL
Copy POST URL
Shown in cases where it is shown today
If unsaved changes, show alternative tooltip text (see figma)
reference: https://docs.google.com/document/d/1wiY9c1LY0gk_h_k-v8C8XZcoMLuvqbnKQlrqbSYzdbk/edit?usp=sharing

@rshen91 rshen91 changed the title Share modal redesign tests ftrs [Tests] Share modal redesign refactor FTRs Mar 29, 2024
@rshen91 rshen91 self-assigned this Mar 29, 2024
@rshen91
Copy link
Contributor Author

rshen91 commented Mar 29, 2024

/ci

@rshen91
Copy link
Contributor Author

rshen91 commented Mar 29, 2024

/ci

@rshen91
Copy link
Contributor Author

rshen91 commented Apr 1, 2024

/ci

@rshen91 rshen91 added the Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience) label Apr 1, 2024
@rshen91
Copy link
Contributor Author

rshen91 commented Apr 1, 2024

/ci

@rshen91
Copy link
Contributor Author

rshen91 commented Apr 1, 2024

/ci

@rshen91
Copy link
Contributor Author

rshen91 commented Apr 1, 2024

/ci

@kibana-ci
Copy link
Collaborator

kibana-ci commented Apr 1, 2024

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #73 / a11y tests using flights sample data Discover a11y tests a11y test on open sidenav filter
  • [job] [logs] FTR Configs #73 / a11y tests using flights sample data Discover a11y tests a11y test on open sidenav filter
  • [job] [logs] FTR Configs #85 / Canvas Canvas app Canvas PDF Report Generation Print PDF button creates a PDF with correct response headers
  • [job] [logs] FTR Configs #85 / Canvas Canvas app Canvas PDF Report Generation Print PDF button creates a PDF with correct response headers
  • [job] [logs] FTR Configs #41 / dashboard app - group 3 dashboard state "after all" hook for "Saved search will update when the query is changed in the URL"
  • [job] [logs] FTR Configs #41 / dashboard app - group 3 dashboard state "after all" hook for "Saved search will update when the query is changed in the URL"
  • [job] [logs] FTR Configs #41 / dashboard app - group 3 dashboard state Saved search will update when the query is changed in the URL
  • [job] [logs] FTR Configs #41 / dashboard app - group 3 dashboard state Saved search will update when the query is changed in the URL
  • [job] [logs] FTR Configs #95 / dashboard app - group 5 share dashboard saved object share test filter state should not have "filters" state in either app or global state when no filters
  • [job] [logs] FTR Configs #95 / dashboard app - group 5 share dashboard saved object share test filter state should not have "filters" state in either app or global state when no filters
  • [job] [logs] FTR Configs #18 / discover Discover CSV Export Generate CSV: new search generates a report with single timefilter
  • [job] [logs] FTR Configs #27 / discover Discover CSV Export Generate CSV: new search generates a report with single timefilter
  • [job] [logs] FTR Configs #96 / discover Discover CSV Export Generate CSV: new search generates a report with single timefilter
  • [job] [logs] FTR Configs #96 / discover Discover CSV Export Generate CSV: new search generates a report with single timefilter
  • [job] [logs] FTR Configs #18 / discover Discover CSV Export Generate CSV: new search generates a report with single timefilter
  • [job] [logs] FTR Configs #27 / discover Discover CSV Export Generate CSV: new search generates a report with single timefilter
  • [job] [logs] FTR Configs #91 / discover feature controls discover feature controls security global discover all privileges shows CSV reports
  • [job] [logs] FTR Configs #91 / discover feature controls discover feature controls security global discover all privileges shows CSV reports
  • [job] [logs] FTR Configs #84 / discover/group1 discover accessibility top nav menu buttons should return focus to the share button when dismissing the share popover
  • [job] [logs] FTR Configs #84 / discover/group1 discover accessibility top nav menu buttons should return focus to the share button when dismissing the share popover
  • [job] [logs] FTR Configs #72 / lens app - group 1 lens ad hoc data view tests should be possible to share a URL of a visualization with adhoc dataViews
  • [job] [logs] FTR Configs #72 / lens app - group 1 lens ad hoc data view tests should be possible to share a URL of a visualization with adhoc dataViews
  • [job] [logs] FTR Configs #47 / lens app - group 4 lens share tests should provide only snapshot url sharing if visualization is not saved yet
  • [job] [logs] FTR Configs #47 / lens app - group 4 lens share tests should provide only snapshot url sharing if visualization is not saved yet
  • [job] [logs] FTR Configs #98 / lens app - group 6 lens reporting PNG report should be able to download report of the current visualization
  • [job] [logs] FTR Configs #98 / lens app - group 6 lens reporting PNG report should be able to download report of the current visualization
  • [job] [logs] FTR Configs #44 / reporting examples Captures PNG file matches the baseline image
  • [job] [logs] FTR Configs #44 / reporting examples Captures PNG file matches the baseline image
  • [job] [logs] FTR Configs #57 / Reporting Functional Tests with Deprecated Security configuration enabled Security with reporting_user built-in role Dashboard: Generate Screenshot does not allow user that does not have reporting_user role
  • [job] [logs] FTR Configs #57 / Reporting Functional Tests with Deprecated Security configuration enabled Security with reporting_user built-in role Dashboard: Generate Screenshot does not allow user that does not have reporting_user role
  • [job] [logs] FTR Configs #21 / Reporting Functional Tests with Security enabled Security with reporting_user built-in role Dashboard: Generate Screenshot does allow PNG generation user with reporting privileges
  • [job] [logs] FTR Configs #21 / Reporting Functional Tests with Security enabled Security with reporting_user built-in role Dashboard: Generate Screenshot does allow PNG generation user with reporting privileges
  • [job] [logs] FTR Configs #1 / security app secure roles and permissions Kibana User navigating to Discover sees the generate CSV button
  • [job] [logs] FTR Configs #1 / security app secure roles and permissions Kibana User navigating to Discover sees the generate CSV button
  • [job] [logs] FTR Configs #81 / Visualize Visualize Reporting Screenshots "after each" hook for "is available if new"
  • [job] [logs] FTR Configs #81 / Visualize Visualize Reporting Screenshots "after each" hook for "is available if new"

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
reporting 122 130 +8
share 85 94 +9
total +17

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
lens 1.4MB 1.4MB +32.0B
reporting 71.2KB 67.8KB -3.3KB
share 6.1KB 3.6KB -2.4KB
total -5.7KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
lens 46.4KB 46.6KB +204.0B
reporting 47.8KB 62.5KB +14.7KB
share 55.0KB 65.7KB +10.7KB
total +25.6KB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @rshen91

@rshen91
Copy link
Contributor Author

rshen91 commented Apr 9, 2024

Changed a lot will open a new PR

@rshen91 rshen91 closed this Apr 9, 2024
@rshen91 rshen91 deleted the share-modal-redesign-tests-ftrs branch April 17, 2024 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:SharedUX Team label for AppEx-SharedUX (formerly Global Experience)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants